<style>
    .layui-table th {
        position: relative;
        padding: 5px 15px !important;
        min-height: 20px;
        line-height: 20px;
        font-size: 14px;
    }

    .layui-table td {
        position: relative;
        padding: 5px 15px !important;
        min-height: 20px;
        line-height: 20px;
        font-size: 14px;
    }
</style>
<div class="layui-form" lay-filter="form-consumer">

    <fieldset class="layui-elem-field">
        <legend>基础信息</legend>
        <div class="layui-field-box">
            <div class="layui-form-item">
                <label class="layui-form-label">调用者名称</label>
                <div class="layui-input-block">
                    <input type="text" name="name" autocomplete="off" lay-verify="required" placeholder="请输入调用者名称"
                           class="layui-input">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">调用者描述</label>
                <div class="layui-input-block">
                    <input type="text" name="description" autocomplete="off" lay-verify="required"
                           placeholder="请输入调用者描述"
                           class="layui-input">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">调用者状态</label>
                <div class="layui-input-block">
                    <input type="radio" name="enable" value="1" title="启用" checked="">
                    <input type="radio" name="enable" value="0" title="禁用">
                </div>
            </div>
        </div>
    </fieldset>

    <input type="button" lay-submit lay-filter="LAY-consumer-add-submit" value="添加服务调用者"
           class="layui-btn layui-btn-fluid">
</div>

<script>
    layui.use(['admin', 'form', 'setter'], function () {
        var $ = layui.$
            , admin = layui.admin
            , form = layui.form
            , setter = layui.setter;

        var apiUrl = setter.apiUrl;

        form.render();
    });
</script>